'use strict'
const path = require('path')

function resolve (dir) {
  return path.join(__dirname, '.', dir)
}

module.exports = {
    context: path.resolve(__dirname, './'),
    resolve: {
        extensions: ['.js', '.vue', '.json'],
        alias: {
            'config': resolve('config'),
            '@': resolve('src'),
            '@api': resolve('src/api'),
            '@views': resolve('src/views'),
            '@@assets': resolve('src/assets'),
            '@comp': resolve('src/components'),
            '@layout': resolve('src/layout'),
            '@static': resolve('src/static'),
            '@mobile': resolve('/src/modules/mobile'),
            '@store': resolve('src/store')
        }
    },
}